package net.qiqbframework.modelling.domain;

import lombok.Getter;

@Getter
public class AnnotatedBizIdentifier<ID> {

    private final BizIdentifierModel<ID> model;

    private final ID target;


    public AnnotatedBizIdentifier(BizIdentifierModel<ID> model, ID target) {
        this.model = model;
        this.target = target;

    }


    public String idToString() {
        return isNull() ? "Null" : target.toString();
    }

    public boolean isNull() {
        return target == null;
    }
}
